package io.renren.modules.feedback.service;

import io.renren.common.utils.R;
import io.renren.modules.feedback.entity.FeedbackinfosCustomEntity;
import io.renren.modules.feedback.entity.FeedbackinfosEntity;

import java.util.List;
import java.util.Map;

/**
 * 
 * 
 * @author »ÆÇå
 * @email 
 * @date 2018-10-23 12:42:34
 */
public interface FeedbackinfosService {

	//api提交反馈
	void submitFeedback(FeedbackinfosEntity feedbackinfosEntity);

	List<FeedbackinfosCustomEntity> queryAuditFeedbacks(Map<String, Object> map);

	int queryAuditTotal(Map<String, Object> map);

	int audit(FeedbackinfosEntity feedbackinfos);

	FeedbackinfosCustomEntity queryAuditInfo(String id);

	FeedbackinfosEntity queryObject(String feedbackinfoid);

	FeedbackinfosCustomEntity queryCustomInfo(String id);
	
	List<FeedbackinfosEntity> queryList(Map<String, Object> map);

	List<FeedbackinfosCustomEntity> queryCustomList(Map<String, Object> map);

	int queryAuditStatus(String id);

	int queryTotalById(Map<String, Object> map);
	
	int queryTotal(Map<String, Object> map);
	
	void save(FeedbackinfosEntity feedbackinfos);
	
	void update(FeedbackinfosEntity feedbackinfos);
	
	void delete(String feedbackinfoid);
	
	void deleteBatch(String[] feedbackinfoids);

	R judgeFeedbackAuditError(FeedbackinfosEntity feedbackinfos, Long userid);
	R judgeFeedbackIsReadError(FeedbackinfosEntity feedbackinfos);
	R judgeFeedbackTypeError(FeedbackinfosEntity feedbackinfos);
}
